﻿@model MSAcademic.v2.Web.Areas.Admin.Models.Login.RequestPasswordResetModel

@{
    ViewBag.Title = "Zahtjev za resetiranje lozinke";
}
 
<img src="~/Areas/Admin/Content/Images/admin-logo.png" />


<h2>Zahtjev za resetiranje lozinke</h2>

    @if (!Model.IsFormSuccess)
    {
        using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()

            @Html.TextBoxFor(x => x.Username, new { @placeholder = "Vaše korisničko ime" })
            @Html.ValidationMessageFor(x => x.Username)
        
            @*<div id="recaptcha_image"></div>
            <div><a href="javascript:Recaptcha.reload()">Get another CAPTCHA</a></div>
            <br/>
            @Html.LabelFor(x => x.recaptcha_response_field, "Captcha: ")
            @Html.EditorFor(x => x.recaptcha_response_field)
        
            <div class="recaptcha">
                @ReCaptcha.GetHtml(theme: "custom")
                @Html.ValidationMessageFor(x => x.recaptcha_response_field)
            </div>*@
        
            <div class="actions-wrapper"> 
                <a class="cancel">Odustani</a> 
                <a class="positive submit">Re-re-resetiraj <i class="icon-refresh"></i></a> 
            </div>   
        }
    }
    else
    {
        <p>Na e-mail adresu poslan je link za nastavak postupka resetiranja lozinke.</p>
        <p>@Html.RouteLink("Povratak na admin prijavu", "AdminLogin") </p>
    }